package com.bwie.gateway.config;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @className: IgnoreWhitesConfig
 * @Description: TODO
 * @version: v1.８.0
 * @author: 李明
 * @date: 2025/10/22 9:43
 */
@Configuration
@ConfigurationProperties(prefix = "ignore")
@Data
@Log4j2
public class IgnoreWhitesConfig {

    private List<String> whites;

    public IgnoreWhitesConfig(List<String> whites) {
        log.info("全局鉴权器搜索白名单，白名单有：{}", JSONObject.toJSONString(whites));
        this.whites = whites;
    }
}
